#ifndef THREAD_H
#define THREAD_H

#include <QThread>
#include <QSet>

class Thread : public QThread
{
    Q_OBJECT

public:
    void setAffinity(const QSet<int> &processors);

protected:
    virtual void run() override;

private:
    QSet<int> processors;
};

#endif // THREAD_H
